
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class OrgInfo extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("org_info", "orgID", $bReadOnly=false);
	}
	public function getOrgID()
	{
		return $this->orgID;

	}
	public function setOrgID($orgID)
	{
		$this->orgID = $orgID;

	}
	public function getName()
	{
		return $this->name;

	}
	public function setName($name)
	{
		$this->name = $name;

	}
	public function getLicenseInfo()
	{
		return $this->licenseInfo;

	}
	public function setLicenseInfo($licenseInfo)
	{
		$this->licenseInfo = $licenseInfo;

	}
	public function getPrimaryEmail()
	{
		return $this->primaryEmail;

	}
	public function setPrimaryEmail($primaryEmail)
	{
		$this->primaryEmail = $primaryEmail;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"orgID" => $this->orgID,
				"name" => $this->name,
				"licenseInfo" => $this->licenseInfo,
				"primaryEmail" => $this->primaryEmail
			)
		);

	}

	private $orgID;
	private $name;
	private $licenseInfo;
	private $primaryEmail;
}
?>
